package player.ui.video;

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.geom.Area;
import java.awt.geom.RoundRectangle2D;


import com.sun.awt.AWTUtilities;

public class GlassWindowTop extends TWindow{
	private static final long serialVersionUID = -3453896706008749121L;
	GlassPanelTop GlassPanelTop;
	GlassWindowTop(){
		super();
		GlassPanelTop=new GlassPanelTop();
		this.setContentPane(GlassPanelTop);
	//	com.sun.awt.AWTUtilities.setWindowOpacity(this, 0f);
	}


	public void setLocation(Point point){
		
		super.setLocation(point);
	}

	public void setBounds(Rectangle rec){
		super.setBounds(rec);
		int sp=12;
		RoundRectangle2D s = new RoundRectangle2D.Double(0, 0, 0, 0, sp, sp);
		Point p1=new Point(0,0);
		Point p2=new Point(getSize().width,getSize().height+20);
		s.setFrameFromDiagonal(p1, p2);
		AWTUtilities.setWindowShape(this, s) ;
	}

}
